package com.itheima.demo1create;

public class ThreadDemo3 {
    public static void main(String[] args)
    {
        new Thread(()-> {
            for (int i = 0; i < 30; i++) {
                System.out.println("线程1输出：" + i);
            }
        }).start();
//        主线程
        for (int i = 0; i < 30; i++)
        {
            System.out.println("主线程输出："+i);
        }
    }
}